package com.kkwrite.regimen.common.entity.dto.param;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by lisha on 2018/7/22 11:10.
 *
 * @author lisha
 */
public class QueryParamOutDTO implements Serializable {
    private static final long serialVersionUID = 8993253720970568015L;

    private List<Data> paramData;

    public QueryParamOutDTO() {
        super();
        this.paramData = new ArrayList<>();
    }

    public Data createData() {
        return new Data();
    }

    public List<Data> getParamData() {
        return paramData;
    }

    public void setParamData(List<Data> paramData) {
        this.paramData = paramData;
    }

    @Override
    public String toString() {
        return "QueryParamOutDTO{" +
                "paramData=" + paramData +
                '}';
    }

    public class Data implements Serializable {
        private static final long serialVersionUID = -5338304555127301480L;

        private Short type;
        private String key;
        private String value;
        private Double order;
        private String description;

        public Short getType() {
            return type;
        }

        public void setType(Short type) {
            this.type = type;
        }

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }

        public Double getOrder() {
            return order;
        }

        public void setOrder(Double order) {
            this.order = order;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        @Override
        public String toString() {
            return "Data{" +
                    "type=" + type +
                    ", key='" + key + '\'' +
                    ", value='" + value + '\'' +
                    ", order=" + order +
                    ", description='" + description + '\'' +
                    '}';
        }
    }
}
